package com.jk;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import org.springframework.core.convert.converter.Converter;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * Created by scc on 2017/12/18.
 */
@EnableTransactionManagement // 开启注解事务管理，等同于xml配置文件中的 <tx:annotation-driven />
@SpringBootApplication
@ImportResource("classpath:spring-dubbo-provider.xml")
@MapperScan("com.jk.dao")
//打开spring定时器总开关
@EnableScheduling
//导入spring的配置文件 相当为web.xml中的spring监听功能
public class ProMain {

    public static void main(String[] args) {
        SpringApplication.run(ProMain.class,args);
    }
}
